import React, { Component } from 'react'
import "./Header.less";

export default class Header extends Component {
  render() {
      let {text,back,register} = this.props;
    return (
      <div className='header'>
          {back? <span className='back'>返回</span>:null}
          <div className='text'>{text}</div>
          {register ? <span className='register'>注册</span>:null}
      </div>
    )
  }
}
